package com.example.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


//专门负责页面跳转的controller
@Controller
public class IndexController {
	
	
	/**
	 * 请求登录到初始化页面
	 */
	@RequestMapping("/index")
	public String testHello() {
		
		return "Index.jsp";
	}
	/**
	 * 登陆首页
	 */
	@RequestMapping("/indexLogin")
	public String indexLogin() {
		
		return "SSOLOgin.jsp";
	}
	
	/**
	 * 请求到sso登陆页面
	 */
	@RequestMapping("/ssoLogin")
	public String ssoLogin(String requestUrl,HttpServletRequest request) {
		
		return "SSOLOgin.jsp";
	}
	
	
	/**
	 * 跳转到成功登陆页面
	 * @return
	 */
	@RequestMapping("/successLogin")
	public String successLogin() {
		
		return "ztreeTest.jsp";
	}
	
	/**
	 * 测试跳转页面
	 * @return
	 */
	@RequestMapping("/testIndex")
	public String testIndex111() {
		System.out.println("进入跳转testIndex");
		return "Index.jsp";
	}

}
